<template>
  <div class="login">
    <el-button type="danger" @click="login">登陆</el-button>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  methods: {
    login() {
      axios.get('api/v1/topics').then((res) => {
        console.log(res)
      })
    }
  }
}
</script>

<style lang="less" scoped>
.login {
  height: 100%;
  background-color: #2b4b6b;
}
</style>
